Skip to content

refactor: shrink HPACK encode tables - #949

Merged
seanmonstar merged 1 commit into
masterfrom
sean/srnpmylwqzzn
Aug 28, 2026
Merged

refactor: shrink HPACK encode tables#949
seanmonstar merged 1 commit into
masterfrom
sean/srnpmylwqzzn

Conversation

@seanmonstar

Copy link
Copy Markdown
Member

This doesn't seem to make any noticeable difference in encoding speed, but it shrinks the size of these static tables substantially.

@ArniDagur

Copy link
Copy Markdown
Contributor
Benchmark Input Base (ns/iter) PR (ns/iter) Delta
encode_long_ascii Firefox user-agent, 82 B 189.5 176.6 -6.8%
encode_header_value accept header, 60 B 121.5 115.8 -4.7%
encode_short_ascii www.example.com 50.5 49.0 -3.0%
encode_all_octets all 256 byte values 1108.6 1077.7 -2.8%
decode_short_ascii www.example.com 49.8 49.3 -1.0%
decode_header_value accept header, 60 B 128.3 128.1 -0.1%
decode_all_octets all 256 byte values 2204.8 2209.3 +0.2%
decode_long_ascii Firefox user-agent, 82 B 174.8 175.1 +0.1%

@seanmonstar
seanmonstar merged commit cb9574b into master Aug 28, 2026
6 checks passed
@seanmonstar
seanmonstar deleted the sean/srnpmylwqzzn branch August 28, 2026 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants